const request = require('../libs/request.js');
const mineService = {
  //首页
  getIndex: (data) => {
    return request({
      url: "/center/index",
      data: data
    });
  },
  //获取动态
  getMineDynamic: (data) => {
    return request({
      url: "/center/circleList",
      data: data
    });
  },
  //获取文章
  getMineArticle: (data) => {
    return request({
      url: "/center/paperList",
      data: data
    });
  },
  //获取视频
  getMineVideo: (data) => {
    return request({
      url: "/center/videoList",
      data: data
    });
  },
  //获取问答
  getMineQuestion: (data) => {
    return request({
      url: "/center/wendaList",
      data: data
    });
  },
  //删除内容
  deleteContent: (data) => {
    return request({
      url: "/center/deleteContent",
      data: data
    });
  },
  //获取达人邀约列表
  getMineInvite: (data) => {
    return request({
      url: "/invite/list",
      data: data
    });
  },
  //获取达人详情
  getMineInviteDetail: (data) => {
    return request({
      url: "/invite/detail",
      data: data
    });
  },
  //获取达人详情内容列表
  getMineInviteDetailList: (data) => {
    return request({
      url: "/invite/invite_content",
      data: data
    });
  },
  //账户中心
  getMineAccount: (data) => {
    return request({
      url: "/account/index",
      data: data
    });
  },
  //交易记录
  getMineTradeList: (data) => {
    return request({
      url: "/account/trade_list",
      data: data
    });
  },
  //提现
  accountCash: (data) => {
    return request({
      url: "/account/cash_out",
      data: data
    });
  },
  //用户中心
  getCustomerInfo: (data) => {
    return request({
      url: "/user/info",
      data: data
    });
  },
  //用户首页
  getCustomerIndex: (data) => {
    return request({
      url: "/user/index",
      data: data
    });
  },
  //用户文章
  getCustomerArticle: (data) => {
    return request({
      url: "/user/paper",
      data: data
    });
  },
  //用户动态
  getCustomerDynamic: (data) => {
    return request({
      url: "/user/circle",
      data: data
    });
  },
  //用户资料
  updateCustomer: (data) => {
    return request({
      url: "/user/update",
      data: data
    });
  },
  //关注
  fansFollow: (data) => {
    return request({
      url: "/fans/follow",
      data: data
    });
  },
  //取消关注
  fansCancel: (data) => {
    return request({
      url: "/fans/cancel",
      data: data
    });
  },
  //收藏
  collect: (data) => {
    return request({
      url: "/collect/add",
      data: data
    });
  },
}
module.exports = mineService;